package com.dongdongshop.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbProvincesMapper;
import com.dongdongshop.pojo.address.TbProvinces;
import com.dongdongshop.pojo.address.TbProvincesExample;
import com.dongdongshop.service.ProvincesServiceI;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
@Service
public class ProvincesServiceImpl implements ProvincesServiceI {

    @Resource
    private TbProvincesMapper provincesMapper;



    @Override
    public List<TbProvinces> getProvinces() {
        return provincesMapper.selectByExample(new TbProvincesExample());
    }
}
